package com.shenfa.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;

import com.shenfa.bean.CostPar;
import com.shenfa.dao.CostParDao;

/**
 * 计费信息业务逻辑类
 * 
 * @author yanglong
 * 
 * @date 2011-8-23
 *
 */
public class CostParService {

	@Autowired
	private CostParDao costParDao;
	
	/**
	 * 根据对象条件查询计费列表
	 * @param t
	 * @return
	 */
	public List<CostPar> getList(CostPar t, int start, int limit) {
		return costParDao.getList(t, start, limit);
	}
	public int queryCount(CostPar t) {
		return costParDao.queryCount(t);
	}

	/**
	 * 添加计费信息
	 * @param t
	 * @return
	 */
	public int add(CostPar t) {
		return costParDao.add(t);
	}

	/**
	 * 删除计费信息
	 * @param t
	 * @return
	 */
	public int del(CostPar t) {
		return costParDao.del(t);
	}

	/**
	 * 更新计费信息
	 * @param t
	 * @return
	 */
	public int upd(CostPar t) {
		return costParDao.upd(t);
	}
	
}
